<style type="text/css">
.right_nav{list-style:none;margin:0;padding:0;width:50px;position:fixed;top:173px;right:27px; z-index:10; background:#f0f0f0; border: 1px solid #ccc;
  -webkit-border-radius: 6px;-moz-border-radius: 6px;border-radius: 6px;
  -webkit-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);-moz-box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2);box-shadow: 2px 2px 5px 2px rgba(0, 0, 0, 0.2);}
.right_nav li{border-bottom:1px solid #d3d3d3;height:50px;line-height:50px;text-align:center; cursor:pointer}
.right_nav li a{display:block; height:50px;font-size:12px;}
.right_nav li a:hover{background:#f9f9f9; text-decoration:none}
.right_nav li:last-child{border-right:none}
/*.right_nav li a.cur{background:#f9f9f9;color:#f60}*/
</style>
<ul class="right_nav">
   	<li><a href="javascript:scroll(0,0)">顶部</a></li>
	<li><a class="nav_ra" href="#nav_ra">开始</a></li>
   	<li><a class="nav_rb" href="#nav_rb">结束</a></li>
	<li><a class="nav_rc" href="#nav_rc">详细</a></li>
	<li><a class="nav_rd" href="#nav_rd">次数</a></li>
	<li><a class="nav_re" href="#nav_re">显示</a></li>
	<li><a class="nav_rf" href="#nav_rff">幻灯</a></li>
	<li><a class="nav_rf" href="#nav_rf">礼盒</a></li>
	<li><a class="nav_rg" href="#nav_rg">兑奖</a></li>
	<li><a class="nav_rh" href="#nav_rh">分享</a></li>
	<li><a class="nav_r1" href="#nav_r1">底部</a></li>
</ul>
<input type="hidden" name="reply_id" value="{$reply['id']}" />
<input type="hidden" name="exchange_id" value="{$exchange['id']}" />
{if $reply['id']}
<div class="account panel panel-default">
    <div class="panel-heading">
        活动数据
    </div>
	<div class="panel-body">
	<div class="row-fluid">
    	<div class="span8 control-group">
			<a class="btn btn-default" href="{php echo $this->createWebUrl('fansdata',array('rid' => $rid));}" style="margin-right:5px;"><i class="fa fa-users"></i> 参与粉丝</a>
			<a class="btn btn-default" href="{php echo $this->createWebUrl('sharedata',array('rid' => $rid));}" style="margin:0 5px;"><i class="fa fa-share-alt"></i> 分享数据</a>
			<a class="btn btn-default" href="{php echo $this->createWebUrl('prizedata',array('rid' => $rid));}" style="margin:0 5px;"><i class="fa fa-gift"></i> 中奖名单</a>
			<a class="btn btn-default" href="{php echo $this->createWebUrl('rankdata',array('rid' => $rid));}" style="margin:0 5px;"><i class="fa fa-list-ol"></i> 粉丝排行</a>
			<a class="btn btn-default" href="{php echo $this->createWebUrl('trend',array('rid' => $rid));}" style="margin:0 5px;"><i class="fa fa-bar-chart-o"></i> 活动分析</a>
			<a class="btn btn-default" href="{php echo $this->createWebUrl('posttmplmsg',array('rid' => $rid));}" style="margin:0 5px;"><i class="fa fa-volume-up"></i> 消息通知</a>
			{if $stonefish_branch}<a class="btn btn-default" href="{php echo $this->createWebUrl('branch',array('rid' => $rid));}" style="margin-left:5px;"><i class="fa fa-plus-square"></i> 商家赠送项</a>{/if}
        </div>
		<div class="span8 control-group" style="margin-top:10px;">
		    {loop $ids $idsname}
			<p><span class="label label-success" style="padding:8px;" target="_blank">{$acid_arr[$idsname]['name']}活动链接：{$_W['siteroot']}app/{php echo substr($this->createMobileUrl('entry', array('j' => $acid_arr[$idsname]['acid'],'rid' => $rid,'entrytype' => 'index')),2)}</span></p>
			{/loop}
		</div>
    </div>
    </div>
</div>
{/if}
<div class="panel panel-default" id="nav_ra">
    <div class="panel-heading">
        活动开始设置
    </div>
    <div class="panel-body">        
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 活动名称</label>
            <div class="col-sm-9 col-xs-12">
               	<input type="text" id="title" class="form-control" placeholder="" name="title" value="{$reply['title']}">
            </div>
        </div>
 		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 活动图片</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('start_picurl',$reply['start_picurl']);}
				<div class="help-block">图片大小建议900 * 500</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 活动说明</label>
            <div class="col-sm-9 col-xs-12">
               	<textarea style="height:60px;" id='description' name="description" class="form-control" cols="60">{$reply['description']}</textarea>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 活动时间</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_daterange('datelimit', array('start'=>date('Y-m-d H:i',$reply['starttime']),'end'=>date('Y-m-d H:i',$reply['endtime'])), true)}
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">版权信息</label>
            <div class="col-sm-9 col-xs-12">
                    <input type="text" id="copyright" class="form-control" placeholder="" name="copyright" value="{$reply['copyright']}">
					<div class="help-block">版权信息，如果不填写，默认为公众号名称！</div>
            </div>
        </div>
    </div>
</div>
<div class="panel panel-default" id="nav_rb">
    <div class="panel-heading">
        活动结束设置
    </div>
    <div class="panel-body">
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 结束标题</label>
            <div class="col-sm-9 col-xs-12">
               	<input type="text" id="end_title" class="form-control" placeholder="" name="end_title" value="{$reply['end_title']}">
            </div>
        </div>
 		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 结束图片</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('end_picurl',$reply['end_picurl']);}
				<div class="help-block">图片大小建议900 * 500</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 结束说明</label>
            <div class="col-sm-9 col-xs-12">
               	<textarea style="height:60px;" id='end_description' name="end_description" class="form-control" cols="60">{$reply['end_description']}</textarea>
            </div>
        </div>
    </div>
</div>
<div class="panel panel-default" id="nav_rc">
    <div class="panel-heading">
        活动详细设置
    </div>
    <div class="panel-body">        
		<div class="form-group" id="award_times">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label">选择模板</label>
            <div class="col-sm-9 col-xs-6">
               	<select name="templateid" class="form-control">
					{loop $template $templates}
					<option value="{$templates['id']}" {if $templates['id'] == $reply['templateid']}selected{/if}>{$templates['title']}</option>
					{/loop}
				</select>
            </div>
        </div>
		<div class="form-group" id="award_times">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label">多个礼盒切换效果</label>
            <div class="col-sm-9 col-xs-6">
               	<select name="slidevertical" class="form-control">
					<option value="1" {if $reply['slidevertical']==1}selected{/if}>上下切换</option>
					<option value="2" {if $reply['slidevertical']==2}selected{/if}>左右切换</option>
				</select>
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 参与用户类型</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="issubscribe0" class="radio-inline"><input type="radio" name="issubscribe" value="0" id="issubscribe0" {if $reply['issubscribe'] == 0}checked="true"{/if}/> 任意粉丝</label>&nbsp;&nbsp;&nbsp;
					<label for="issubscribe1" class="radio-inline"><input type="radio" name="issubscribe" value="1" id="issubscribe1" {if $reply['issubscribe'] == 1}checked="true"{/if}/> 关注粉丝</label>{if $stonefish_member}&nbsp;&nbsp;&nbsp;
					<label for="issubscribe2" class="radio-inline"><input type="radio" name="issubscribe" value="2" id="issubscribe2" {if $reply['issubscribe'] == 2}checked="true"{/if}/> 正常会员</label>&nbsp;&nbsp;&nbsp;
					<label for="issubscribe3" class="radio-inline"><input type="radio" name="issubscribe" value="3" id="issubscribe3" {if $reply['issubscribe'] == 3}checked="true"{/if}/> 手机验证会员</label>&nbsp;&nbsp;&nbsp;
					<label for="issubscribe4" class="radio-inline"><input type="radio" name="issubscribe" value="4" id="issubscribe4" {if $reply['issubscribe'] == 4}checked="true"{/if}/> 分组验证会员</label>{if $stonefish_branch}&nbsp;&nbsp;&nbsp;
					<label for="issubscribe5" class="radio-inline"><input type="radio" name="issubscribe" value="5" id="issubscribe5" {if $reply['issubscribe'] == 5}checked="true"{/if}/> 商家网点验证会员</label>{/if}{/if}
				</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 用户中奖提示</label>
            <div class="col-sm-9 col-xs-12">
               	<textarea style="height:80px;" id='awardtext' name="awardtext" class="form-control" cols="60">{$reply['awardtext']}</textarea>
				<div class="help-block">每行一个提示，用于变化提示内容 <span style='color:red'>变量：#奖品名称#</span> 分享人所中的最大奖品名称，没有中奖则不显示</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 没有中奖提示</label>
            <div class="col-sm-9 col-xs-12">
               	<textarea style="height:80px;" id='notawardtext' name="notawardtext" class="form-control" cols="60">{$reply['notawardtext']}</textarea>
				<div class="help-block">每行一个提示，用于变化提示内容 <span style='color:red'>变量：#奖品名称#</span> 分享人所中的最大奖品名称，没有中奖则不显示</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">没有中奖提示图</label>
            <div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_multi_image('noprizepic', $reply['noprizepic']);}
				<div class="help-block">建议尺寸:宽640像素,高640像素的等比图片</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 没有奖品提示</label>
            <div class="col-sm-9 col-xs-12">
               	<textarea style="height:80px;" id='notprizetext' name="notprizetext" class="form-control" cols="60">{$reply['notprizetext']}</textarea>
				<div class="help-block">每行一个提示，用于变化提示内容</div>
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 是否获取头像昵称</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="power1" class="radio-inline"><input type="radio" name="power" value="1" id="power1" {if $reply['power'] == 1}checked="true"{/if} onclick="$('#poweravatar').hide();"/> 只获取openid值</label>&nbsp;&nbsp;&nbsp;
					<label for="power2" class="radio-inline"><input type="radio" name="power" value="2" id="power2" {if $reply['power'] == 2}checked="true"{/if} onclick="$('#poweravatar').show();"/> 获取用户头像昵称</label>
				</div>
            </div>
        </div>
		<div class="form-group" id="poweravatar"{if $reply['power'] == 1}style="display:none"{/if}>
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"> 头像大小</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="poweravatar46" class="radio-inline"><input type="radio" name="poweravatar" value="46" id="poweravatar46" {if $reply['poweravatar'] == '46'}checked="true"{/if}/> 46 * 46</label>&nbsp;&nbsp;&nbsp;
					<label for="poweravatar64" class="radio-inline"><input type="radio" name="poweravatar" value="64" id="poweravatar64" {if $reply['poweravatar'] == '64'}checked="true"{/if}/> 64 * 64</label>&nbsp;&nbsp;&nbsp;
					<label for="poweravatar96" class="radio-inline"><input type="radio" name="poweravatar" value="96" id="poweravatar96" {if $reply['poweravatar'] == '96'}checked="true"{/if}/> 96 * 96</label>&nbsp;&nbsp;&nbsp;
					<label for="poweravatar132" class="radio-inline"><input type="radio" name="poweravatar" value="132" id="poweravatar132" {if $reply['poweravatar'] == '132'}checked="true"{/if}/> 132 * 132</label>&nbsp;&nbsp;&nbsp;
					<label for="poweravatar0" class="radio-inline"><input type="radio" name="poweravatar" value="0" id="poweravatar0" {if $reply['poweravatar'] == 0}checked="true"{/if}/> 640 * 640</label>
				</div>
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 助力参与类型</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="visubscribe0" class="radio-inline"><input type="radio" name="visubscribe" value="0" id="visubscribe0" {if $reply['visubscribe'] == 0}checked="true"{/if}/> 任意粉丝</label>&nbsp;&nbsp;&nbsp;
					<label for="visubscribe1" class="radio-inline"><input type="radio" name="visubscribe" value="1" id="visubscribe1" {if $reply['visubscribe'] == 1}checked="true"{/if}/> 关注粉丝</label>{if $stonefish_member}&nbsp;&nbsp;&nbsp;
					<label for="visubscribe2" class="radio-inline"><input type="radio" name="visubscribe" value="2" id="visubscribe2" {if $reply['visubscribe'] == 2}checked="true"{/if}/> 正常会员</label>&nbsp;&nbsp;&nbsp;
					<label for="visubscribe3" class="radio-inline"><input type="radio" name="visubscribe" value="3" id="visubscribe3" {if $reply['visubscribe'] == 3}checked="true"{/if}/> 手机验证会员</label>&nbsp;&nbsp;&nbsp;
					<label for="visubscribe4" class="radio-inline"><input type="radio" name="visubscribe" value="4" id="visubscribe4" {if $reply['visubscribe'] == 4}checked="true"{/if}/> 分组验证会员</label>{if $stonefish_branch}&nbsp;&nbsp;&nbsp;
					<label for="visubscribe5" class="radio-inline"><input type="radio" name="visubscribe" value="5" id="visubscribe5" {if $reply['visubscribe'] == 5}checked="true"{/if}/> 商家网点验证会员</label>{/if}{/if}
				</div>
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 助力类型</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="powertype0" class="radio-inline"><input type="radio" name="powertype" value="0" id="powertype0" {if $reply['powertype'] == 0}checked="true"{/if}/> 访问助力</label>&nbsp;&nbsp;&nbsp;
					<label for="powertype1" class="radio-inline"><input type="radio" name="powertype" value="1" id="powertype1" {if $reply['powertype'] == 1}checked="true"{/if}/> 点击助力</label>
				</div>
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 互助类型</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="helptype0" class="radio-inline"><input type="radio" name="helptype" value="0" id="helptype0" {if $reply['helptype'] == 0}checked="true"{/if}/> 允许互助</label>&nbsp;&nbsp;&nbsp;
					<label for="helptype1" class="radio-inline"><input type="radio" name="helptype" value="1" id="helptype1" {if $reply['helptype'] == 1}checked="true"{/if}/> 禁止互助</label>
				</div>
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 助力对象</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="helpfans0" class="radio-inline"><input type="radio" name="helpfans" value="0" id="helpfans0" {if $reply['helpfans'] == 0}checked="true"{/if}/> 全部用户（可对所有用户礼盒进行助力）</label>&nbsp;&nbsp;&nbsp;
					<label for="helpfans1" class="radio-inline"><input type="radio" name="helpfans" value="1" id="helpfans1" {if $reply['helpfans'] == 1}checked="true"{/if}/> 只能一人（只能对单独一个人礼盒进行助力）</label>
				</div>
				
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 助力礼盒</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="helplihe0" class="radio-inline"><input type="radio" name="helplihe" value="0" id="helplihe0" {if $reply['helplihe'] == 0}checked="true"{/if}/> 全部礼盒（可对此用户的所有礼盒助力）</label>&nbsp;&nbsp;&nbsp;
					<label for="helplihe1" class="radio-inline"><input type="radio" name="helplihe" value="1" id="helplihe1" {if $reply['helplihe'] == 1}checked="true"{/if}/> 单独礼盒（只能对用户的单独一个礼盒助力）</label>
				</div>
            </div>
        </div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">助力限制类型</label>
			<div class="col-sm-9 col-xs-12">
				<label for="limitType0" class="radio-inline"><input type="radio" id="limitType0" name="limittype" value="0" {if $reply['limittype'] == 0}checked="checked"{/if} onclick="$('#totallimit').hide();">限制一次</label>&nbsp;&nbsp;&nbsp;
				<label for="limitType1" class="radio-inline"><input type="radio" id="limitType1" name="limittype" value="1" {if $reply['limittype'] == 1}checked="checked"{/if} onclick="$('#totallimit').show();">每天一次</label>
			</div>
		</div>
		<div class="form-group" id="totallimit"{if $reply['limittype'] == 0} style="display:none"{/if}>
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">每个好友总助力次数限制</label>
			<div class="col-sm-9 col-xs-12">
				<div class="input-group">
					<span class="input-group-addon">每个好友最多助力</span>
					<input type="text" name="totallimit" class="form-control" value="{$reply['totallimit']}" />
					<span class="input-group-addon">次</span>
				</div>
			</div>
		</div>        
    </div>
</div>

<div class="panel panel-default" id="nav_rd">
    <div class="panel-heading">
        参与次数设置
    </div>
    <div class="panel-body">
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 每人最多获奖次数</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<input type="text" class="form-control" name="award_num" value="{$reply['award_num']}" />
					<span class="input-group-addon">次</span>
				</div>
				<div class="help-block">单个用户最多共享几个奖项，0为不限制，推荐设置为1次!</div>
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 参与次数选项</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="opportunity1" class="radio-inline"><input type="radio" name="opportunity" value="0" id="opportunity1" {if empty($reply) || $reply['opportunity'] == 0}checked="true"{/if} onclick="{if $stonefish_branch}$('#opportunity_text').hide();{/if}$('#number_times').show();$('#credit').hide();"/> 活动设置次数</label>&nbsp;&nbsp;&nbsp;
					{if $stonefish_branch}<label for="opportunity2" class="radio-inline"><input type="radio" name="opportunity" value="1" id="opportunity2" {if !empty($reply) && $reply['opportunity'] == 1}checked="true"{/if} onclick="$('#opportunity_text').show();$('#number_times').hide();$('#credit').hide();"/> 商户赠送次数</label>&nbsp;&nbsp;&nbsp;{/if}
					<label for="opportunity3" class="radio-inline"><input type="radio" name="opportunity" value="2" id="opportunity3" {if !empty($reply) && $reply['opportunity'] == 2}checked="true"{/if} onclick="{if $stonefish_branch}$('#opportunity_text').hide();{/if}$('#number_times').hide();$('#credit').show();"/> 积分购买次数</label>
				</div>				
            </div>
        </div>
		{if $stonefish_branch}
		<div class="form-group" id="opportunity_text"{if !empty($reply) && $reply['opportunity'] == 1} style="display:block"{else} style="display:none"{/if}>
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">商家赠送参数</label>
            <div class="col-sm-9 col-xs-12">
               	<textarea style="height:200px;" id='opportunity_txt' name="opportunity_txt" class="form-control richtext2" cols="60">{$reply['opportunity_txt']}</textarea>
                <span class="help-block">商家赠送次数为0时 即商家赠次数审核状态下给用户的说明 </span>
				<div class="help-block"><span style='color:red'>设置为商户赠送次数后，<b>每人最多参与次数</b>将以商户赠送的次数为准！</span></div>
            </div>
        </div>
        {/if}		
		<div class="form-group" id="credit"{if !empty($reply) && $reply['opportunity'] == 2} style="display:block"{else} style="display:none"{/if}>
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">积分购买次数</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<span class="input-group-addon">每</span>
					<input type="text" class="form-control" name="credit_value" id="credit_value" value="{$reply['credit_value']}" />
					<span class="input-group-addon" style="border-left:0px;border-right:0px;">个</span>
					<select name="credit_type" class="form-control">
						{loop $creditnames $key $credit}
						<option value="{$key}" {if $key == $reply['credit_type']}selected{/if}>{$credit}</option>
						{/loop}
					</select>
					<span class="input-group-addon" style="border-left:0px;border-right:0px;">购买一次  最多购买</span>
					<input type="text" class="form-control" name="number_time" value="{$reply['number_times']}" />
					<span class="input-group-addon">次</span>
				</div>
				<div class="help-block">每参与一次，系统自动扣除多少积分    最多购买为0时不限制 直至积分不足无法购买停止</div>
				<div class="help-block"><span style='color:red'>设置为积分购买次数后，<b>每人最多参与次数</b>将以粉丝购买的次数为准！</span></div>
            </div>
        </div>
     	<div class="form-group" id="number_times"{if !empty($reply) && $reply['opportunity'] == 0} style="display:block"{else} style="display:none"{/if}>
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 每人最多参与次数</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<input type="text" class="form-control" name="number_times" value="{$reply['number_times']}" />
					<span class="input-group-addon">个</span>
				</div>
				<div class="help-block">参与次数限制,0为不限制</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 每人每天最多参与次数</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<input type="text" class="form-control" name="day_number_times" value="{$reply['day_number_times']}" />
					<span class="input-group-addon">个</span>
				</div>
				<div class="help-block">必须小于总次数！ 0 为不限制 可以参与天数 = 总次数/每天次数!</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 活动首页提示</label>
            <div class="col-sm-9 col-xs-12">
               	<textarea style="height:80px;" id='tips' name="tips" class="form-control" cols="60">{$reply['tips']}</textarea>
				<div class="help-block">用于变化提示内容 <span style='color:red'>变量：#最多个数#</span> 每人最多参与次数 <span style='color:red'>变量：#每天个数#</span> 每人每天最多参与次数 <span style='color:red'>变量：#领取个数#</span> 领取了多少个礼盒 <span style='color:red'>变量：#今日领取#</span> 今日领取了多少个礼盒</div>
            </div>
        </div>
    </div>
</div>

<div class="panel panel-default" id="nav_re">
    <div class="panel-heading">
        活动显示设置
    </div>
    <div class="panel-body">
        <div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label">首页滚动中奖人数</label>
            <div class="col-sm-9 col-xs-6">
				<div class="input-group">
					<span class="input-group-addon">首页　显示</span>
					<input type="text" class="form-control" name="viewawardnum" value="{$reply['viewawardnum']}" />
					<span class="input-group-addon">位中奖粉丝 0为不显示中奖信息</span>
				</div>
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label">排行榜显示人数</label>
            <div class="col-sm-9 col-xs-6">
				<div class="input-group">
					<span class="input-group-addon">排行榜显示</span>
					<input type="text" class="form-control" name="viewranknum" value="{$reply['viewranknum']}" />
					<span class="input-group-addon">位粉丝</span>
				</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 显示奖品数量</label>
            <div class="col-sm-9 col-xs-12">
               	<label class="radio-inline">
                	<input type="radio" name="showprize" value="0" {if $reply['showprize'] == 0} checked="checked"{/if}/>不显示
                </label>
                <label class="radio-inline">
                	<input type="radio" name="showprize" value="1" {if $reply['showprize'] == 1} checked="checked"{/if}/>仅显示奖品
                </label>
				<label class="radio-inline">
                	<input type="radio" name="showprize" value="2" {if $reply['showprize'] == 2} checked="checked"{/if}/>显示奖品以及数量
                </label>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">奖品详细介绍</label>
            <div class="col-sm-9 col-xs-12">
               	<textarea style=" height:200px;" id='prizeinfo' name="prizeinfo" class="form-control richtextinfo">{$reply['prizeinfo']}</textarea>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 秒显广告次数</label>
            <div class="col-sm-9 col-xs-12">
               	<label class="radio-inline">
                	<input type="radio" name="homepictype" value="1" {if $reply['homepictype'] == 1} checked="checked"{/if}/>每次
                </label>
                <label class="radio-inline">
                	<input type="radio" name="homepictype" value="2" {if $reply['homepictype'] == 2} checked="checked"{/if}/>每天
                </label>
				<label class="radio-inline">
                	<input type="radio" name="homepictype" value="3" {if $reply['homepictype'] == 3} checked="checked"{/if}/>每周
                </label>
				<label class="radio-inline">
                	<input type="radio" name="homepictype" value="4" {if $reply['homepictype'] == 4} checked="checked"{/if}/>仅1次
                </label>				
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 秒显广告时间</label>
            <div class="col-sm-9 col-xs-12">
               	<div class="input-group">
					<span class="input-group-addon">首页显示</span>
					<input type="text" class="form-control" name="homepictime" value="{$reply['homepictime']}" />
					<span class="input-group-addon">秒广告图    0秒为不显示</span>
				</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 秒显广告图</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('homepic',$reply['homepic']);}
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 虚拟人数显示</label>
            <div class="col-sm-9 col-xs-12">
               	<div class="input-group">
					<span class="input-group-addon">首页显示</span>
					<input type="text" class="form-control" name="xuninum" value="{$reply['xuninum']}" />
					<span class="input-group-addon">位虚拟人数+真实参与人数　此数值随下面设置自动变化</span>
				</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 虚拟人数设置</label>
            <div class="col-sm-9 col-xs-12">
               	<div class="input-group">
					<span class="input-group-addon">每次间隔</span>
                    <input type="text" class="form-control" name="xuninumtime" id="xuninumtime" value="{$reply['xuninumtime']}" />
                    <span class="input-group-addon" style="border-left:0px;border-right:0px;">秒　系统自动增加</span>
					<input type="text" class="form-control" name="xuninuminitial" id="xuninuminitial" value="{$reply['xuninuminitial']}" />
					<span class="input-group-addon" style="border-left:0px;border-right:0px;">至</span>
					<input type="text" class="form-control" name="xuninumending" id="xuninumending" value="{$reply['xuninumending']}" />
					<span class="input-group-addon">名虚拟人参与本活动</span>
				</div>
            </div>
        </div>
		<div class="form-group">
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">活动页背景音乐</label>
			<div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_audio('musicurl', $reply['musicurl'], $options = array());}
				<label class="checkbox-inline"><input type="checkbox" name="music" value="1" {if $reply['music'] == 1} checked{/if}> 开启音乐</label>
				<label class="checkbox-inline"><input type="checkbox" name="mauto" value="1" {if $reply['mauto'] == 1} checked{/if}> 自动播放</label>
				<label class="checkbox-inline"><input type="checkbox" name="mloop" value="1" {if $reply['mloop'] == 1} checked{/if}> 自动循环</label>
				<div class="help-block">选择上传的音频文件或直接输入URL地址，常用格式：mp3</div>
			</div>	
		</div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">底部广告图</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('adpic',$reply['adpic']);}
				<div class="help-block">建议尺寸:宽640像素,高130像素的等比图片，高不超过200像素</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 广告图链接</label>
            <div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_link('adpicurl',$reply['adpicurl']);}
				<div class="help-block">广告图链接必需填写完整的URL地址如：http://www.baidu.com</div>
            </div>
        </div>
    </div>
</div>
<div class="panel panel-default" id="nav_rff">
	<div class="panel-heading">
		幻灯广告设置
	</div>
	<div class="panel-body">
	    {if $banner}
		{loop $banner $banners}
		<input type="hidden" name="banner_id[{$banners['id']}]" value="{$banners['id']}" />
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">幻灯广告图</label>
            <div class="col-sm-8 col-xs-12">
               	{php echo tpl_form_field_image('bannerpic['.$banners['id'].']',$banners['bannerpic']);}
				<div class="help-block">建议尺寸:宽300像素,高300像素或等比图片</div>
			</div>
			<div class="col-sm-1 col-xs-12">
			    <span style="float:right;"><a class="btn btn-danger" href="{php echo $this->createWebUrl('deletebanner',array('rid'=>$rid,'id'=>$banners['id']))}">删除此幻灯</a></span>
			</div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 幻灯广告图链接</label>
            <div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_link('bannerurl['.$banners['id'].']',$banners['bannerurl']);}
				<div class="help-block">幻灯广告图链接必需填写完整的URL地址如：http://www.baidu.com</div>
            </div>
        </div>
		<hr/>
		{/loop}
		{else}
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">幻灯广告图</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('bannerpic_new[1]','');}
				<div class="help-block">建议尺寸:宽300像素,高300像素或等比图片</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 幻灯广告图链接</label>
            <div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_link('bannerurl_new[1]','');}
				<div class="help-block">幻灯广告图链接必需填写完整的URL地址如：http://www.baidu.com</div>
            </div>
        </div>
		<hr/>
		{/if}
		<div id="banner" style="display: none">
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label">幻灯广告图</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_image('bannerpic_new[变化的ID]','');}
				<div class="help-block">建议尺寸:宽300像素,高300像素或等比图片</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 幻灯广告图链接</label>
            <div class="col-sm-9 col-xs-12">
				{php echo tpl_form_field_link('bannerurl_new[变化的ID]','');}
				<div class="help-block">幻灯广告图链接必需填写完整的URL地址如：http://www.baidu.com</div>
            </div>
        </div>		
		</div>
		<span id="banner_insert_flag" style="display: none"></span>
		<div class="form-group">
		    <div class="col-sm-5"></div>
			<div class="col-sm-7">
				<button id="btn_add_banner" type="button" class="btn btn-warning">
					<span class="glyphicon glyphicon-plus"></span> 添加幻灯广告
				</button>
			</div>
		</div>
	</div>
</div>

<div class="panel panel-default" id="nav_rf">
	<div class="panel-heading">
		礼盒配置
	</div>
	<div class="panel-body">
		{if $prize}
			{loop $prize $item}
			<div>
			<input type="hidden" name="prize_id[{$item['id']}]" value="{$item['id']}" />
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 奖品类型</label>
                <div class="col-sm-9">
					<label class="radio-inline">
						<input type="radio" name="prizetype[{$item['id']}]" value="physical"{if $item['prizetype']=='physical'} checked="checked"{/if} onclick="$('#p_name_{$item['id']}').html('真实');"/>真实物品
					</label>
					<label class="radio-inline">
						<input type="radio" name="prizetype[{$item['id']}]" value="virtual"{if $item['prizetype']=='virtual'} checked="checked"{/if} onclick="$('#p_name_{$item['id']}').html('虚拟');"/>虚拟物品
					</label>
					{loop $creditnames $key $credit}
					<label class="radio-inline">
						<input type="radio" name="prizetype[{$item['id']}]" value="{$key}"{if $item['prizetype']==$key} checked="checked"{/if} onclick="$('#p_name_{$item['id']}').html('{$credit}');"/>会员（{$credit}）
					</label>
					{if $item['prizetype']==$key}{php $credit_name = $credit;}{/if}
					{/loop}					
					{if $item['fans']}<span style="float:right;" class="btn btn-danger">无法删除，已有粉丝领取此礼盒</span>{else}<span style="float:right;"><a class="btn btn-danger" href="{$item['delete_url']}">删除此礼盒</a></span>{/if}
					<div class="help-block">奖品类型为会员（积分）、会员（余额）等会员积分类型时，价值为增送的积分或余额等积分/余额值</div>
				</div>
            </div>			
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> <span id="p_name_{$item['id']}">{if $item['prizetype']=='physical'}真实{/if}{if $item['prizetype']=='virtual'}虚拟{/if}{$credit_name}</span>价值</label>
                <div class="col-sm-4">
                    <input class="form-control" type="text" value="{$item['prizevalue']}" name="prizevalue[{$item['id']}]">
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label">助力人次</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <input class="form-control" type="text" value="{$item['break']}" name="break[{$item['id']}]">
                        <span class="input-group-addon">人次</span>
                    </div>
                </div>
            </div>			
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 礼盒名称</label>
                <div class="col-sm-4">
                    <input class="form-control" type="text" value="{$item['prizerating']}" name="prizerating[{$item['id']}]">
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 奖品数量</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <input class="form-control" type="text" value="{$item['prizetotal']}" name="prizetotal[{$item['id']}]">
                        <span class="input-group-addon">份</span>
                    </div>
                </div>							
            </div>						
            <div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 奖品名称</label>
                <div class="col-sm-4">
                    <input class="form-control" type="text" value="{$item['prizename']}" name="prizename[{$item['id']}]">
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 中奖概率</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <input class="form-control" type="text" value="{$item['probalilty']}" name="probalilty[{$item['id']}]">
                        <span class="input-group-addon">%</span>
                    </div>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label">每人中奖</label>
                <div class="col-sm-4">
                    <div class="input-group">
                        <span class="input-group-addon">每人最多</span>
						<input class="form-control" type="text" value="{$item['prizeren']}" name="prizeren[{$item['id']}]">
                        <span class="input-group-addon">个 0为不限制</span>
                    </div>
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label">每天发奖</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <span class="input-group-addon">每天最多</span>
						<input class="form-control" type="text" value="{$item['prizeday']}" name="prizeday[{$item['id']}]">
                        <span class="input-group-addon">个 0为不限制</span>
                    </div>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span>礼盒样式</label>
                <div class="col-sm-9">
                    <select name="liheid[{$item['id']}]" class="form-control">
					    <option value="">请选择礼盒样式</option>
					    {loop $lihestyle $lihestyles}
					    <option value="{$lihestyles['liheid']}" {if $item['liheid']==$lihestyles['liheid']}selected{/if}>{$lihestyles['title']}</option>
					    {/loop}
				    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">奖品图片</label>
                <div class="col-sm-9">
				    {php echo tpl_form_field_image('prizepic['.$item['id'].']',$item['prizepic']);}
					<div class="help-block">奖品显示图片 图片大小418px X 418px</div>
				</div>
            </div>
			<hr/>
			</div>
			{/loop}		
		{/if}
		<div id="jiangpin" style="display: none">
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 奖品类型</label>
                <div class="col-sm-9">
					<label class="radio-inline">
						<input type="radio" name="prizetype_new[变化的ID]" value="physical" checked="checked" onclick="$('#p_name_new_变化的ID').html('真实');"/>真实物品
					</label>
					<label class="radio-inline">
						<input type="radio" name="prizetype_new[变化的ID]" value="virtual" onclick="$('#p_name_new_变化的ID').html('虚拟');"/>虚拟物品
					</label>
					{loop $creditnames $key $credit}
					<label class="radio-inline">
						<input type="radio" name="prizetype_new[变化的ID]" value="{$key}" onclick="$('#p_name_new_变化的ID').html('{$credit}');"/>会员（{$credit}）
					</label>
					{/loop}					
					<div class="help-block">奖品类型为会员（积分）、会员（余额）等时，价值金额为增送的积分或余额等积分/余额值</div>
				</div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span><span id="p_name_new_变化的ID">真实</span>价值</label>
                <div class="col-sm-4">
                    <input class="form-control" type="text" name="prizevalue_new[变化的ID]" placeholder="请填写奖品价值或积分等值">
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 助力人次</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <input class="form-control" type="text" name="break_new[变化的ID]" value="10">
                        <span class="input-group-addon">人次</span>
                    </div>
                </div>
            </div>			
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 礼盒名称</label>
                <div class="col-sm-4">
                    <input class="form-control" type="text" name="prizerating_new[变化的ID]" placeholder="如：一等奖，二等奖">
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 奖品数量</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <input class="form-control" type="text" name="prizetotal_new[变化的ID]" value="100">
                        <span class="input-group-addon">份</span>
                    </div>
                </div>							
            </div>						
            <div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 奖品名称</label>
                <div class="col-sm-4">
                    <input class="form-control" type="text"  name="prizename_new[变化的ID]" placeholder="请填写奖品名称">
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 中奖概率</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <input class="form-control" type="text" name="probalilty_new[变化的ID]" value="50">
                        <span class="input-group-addon">%</span>
                    </div>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label">每人中奖</label>
                <div class="col-sm-4">
                    <div class="input-group">
                        <span class="input-group-addon">每人最多</span>
						<input class="form-control" type="text" name="prizeren_new[变化的ID]" value="0">
                        <span class="input-group-addon">个 0为不限制</span>
                    </div>
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label">每天发奖</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <span class="input-group-addon">每天最多</span>
						<input class="form-control" type="text" name="prizeday_new[变化的ID]"  value="0">
                        <span class="input-group-addon">个 0为不限制</span>
                    </div>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span>礼盒样式</label>
                <div class="col-sm-9">
                    <select name="liheid_new[变化的ID]" class="form-control">
					    <option value="" selected>请选择礼盒样式</option>
					    {loop $lihestyle $lihestyles}
					    <option value="{$lihestyles['liheid']}">{$lihestyles['title']}</option>
					    {/loop}
				    </select>
                </div>				
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">奖品图片</label>
                <div class="col-sm-9">
					{php echo tpl_form_field_image('prizepic_new[变化的ID]','');}
					<div class="help-block">奖品显示图片 图片大小418px X 418px</div>
				</div>
            </div>
		</div>
		{if empty($prize)}
		<div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 奖品类型</label>
                <div class="col-sm-9">
					<label class="radio-inline">
						<input type="radio" name="prizetype_new[1]" value="physical" checked="checked" onclick="$('#p_name_new').html('真实');"/>真实物品
					</label>
					<label class="radio-inline">
						<input type="radio" name="prizetype_new[1]" value="virtual" onclick="$('#p_name_new').html('虚拟');"/>虚拟物品
					</label>
					{loop $creditnames $key $credit}
					<label class="radio-inline">
						<input type="radio" name="prizetype_new[1]" value="{$key}" onclick="$('#p_name_new').html('{$credit}');"/>会员（{$credit}）
					</label>
					{/loop}					
					<div class="help-block">奖品类型为会员（积分）、会员（余额）等时，价值金额为增送的积分或余额等积分/余额值</div>
				</div>
            </div>			
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span><span id="p_name_new">真实</span>价值</label>
                <div class="col-sm-4">
                    <input class="form-control" type="text" name="prizevalue_new[1]" placeholder="请填写奖品价值或积分等值">
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 助力人次</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <input class="form-control" type="text" name="break_new[1]" value="10">
                        <span class="input-group-addon">人次</span>
                    </div>
                </div>
            </div>			
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 礼盒名称</label>
                <div class="col-sm-4">
                    <input class="form-control" type="text" name="prizerating_new[1]" placeholder="如：一等奖，二等奖">
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 奖品数量</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <input class="form-control" type="text" name="prizetotal_new[1]" value="100">
                        <span class="input-group-addon">份</span>
                    </div>
                </div>							
            </div>						
            <div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 奖品名称</label>
                <div class="col-sm-4">
                    <input class="form-control" type="text"  name="prizename_new[1]" placeholder="请填写奖品名称">
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span> 中奖概率</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <input class="form-control" type="text" name="probalilty_new[1]" value="50">
                        <span class="input-group-addon">%</span>
                    </div>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label">每人中奖</label>
                <div class="col-sm-4">
                    <div class="input-group">
                        <span class="input-group-addon">每人最多</span>
						<input class="form-control" type="text" name="prizeren_new[1]" value="0">
                        <span class="input-group-addon">个 0为不限制</span>
                    </div>
                </div>
				<label class="col-xs-12 col-sm-2 col-md-2 control-label">每天发奖</label>
                <div class="col-sm-3">
                    <div class="input-group">
                        <span class="input-group-addon">每天最多</span>
						<input class="form-control" type="text" name="prizeday_new[1]" value="0">
                        <span class="input-group-addon">个 0为不限制</span>
                    </div>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-2 col-md-2 control-label"><span style='color:red'>*</span>礼盒样式</label>
                <div class="col-sm-9">
                    <select name="liheid_new[1]" class="form-control">
					    <option value="" selected>请选择礼盒样式</option>
					    {loop $lihestyle $lihestyles}
					    <option value="{$lihestyles['liheid']}">{$lihestyles['title']}</option>
					    {/loop}
				    </select>
                </div>				
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">奖品图片</label>
                <div class="col-sm-9">
					{php echo tpl_form_field_image('prizepic_new[1]','');}
					<div class="help-block">奖品显示图片 图片大小418px X 418px</div>
				</div>
            </div>
			<hr/>
		</div>
		{/if}
		<span id="award_insert_flag" style="display: none"></span>
		<div class="form-group">
		    <div class="col-sm-5"></div>
			<div class="col-sm-7">
				<button id="btn_add_award" type="button" class="btn btn-warning">
					<span class="glyphicon glyphicon-plus"></span> 添加礼盒
				</button>
			</div>
		</div>
	</div>
</div>

<div class="panel panel-default" id="nav_rg">
    <div class="panel-heading">
        兑奖配置
    </div>
    <div class="panel-body">
		<div class="form-group" id="award_times">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label">参与消息模板</label>
            <div class="col-sm-9 col-xs-6">
               	<select name="tmplmsg_participate" class="form-control">
					<option value="" {if $exchange['tmplmsg_participate']==''}selected{/if}>{if empty($tmplmsg)}暂时没有参与消息模板{else}选择参与消息模板{/if}</option>
					{loop $tmplmsg $tmplmsgs}
					<option value="{$tmplmsgs['id']}" {if $tmplmsgs['id'] == $exchange['tmplmsg_participate']}selected{/if}>{$tmplmsgs['template_name']}</option>
					{/loop}
				</select>
            </div>
        </div>
		<div class="form-group" id="award_times">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label">中奖消息模板</label>
            <div class="col-sm-9 col-xs-6">
               	<select name="tmplmsg_winning" class="form-control">
					<option value="" {if $exchange['tmplmsg_winning']==''}selected{/if}>{if empty($tmplmsg)}暂时没有中奖消息模板{else}选择中奖消息模板{/if}</option>
					{loop $tmplmsg $tmplmsgs}
					<option value="{$tmplmsgs['id']}" {if $tmplmsgs['id'] == $exchange['tmplmsg_winning']}selected{/if}>{$tmplmsgs['template_name']}</option>
					{/loop}
				</select>
            </div>
        </div>
		<div class="form-group" id="award_times">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label">兑奖消息模板</label>
            <div class="col-sm-9 col-xs-6">
               	<select name="tmplmsg_exchange" class="form-control">
					<option value="" {if $exchange['tmplmsg_exchange']==''}selected{/if}>{if empty($tmplmsg)}暂时没有兑奖消息模板{else}选择兑奖消息模板{/if}</option>
					{loop $tmplmsg $tmplmsgs}
					<option value="{$tmplmsgs['id']}" {if $tmplmsgs['id'] == $exchange['tmplmsg_exchange']}selected{/if}>{$tmplmsgs['template_name']}</option>
					{/loop}
				</select>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 兑奖时间</label>
            <div class="col-sm-9 col-xs-12">
               	{php echo tpl_form_field_daterange('awardingdatelimit', array('start'=>date('Y-m-d H:i',$exchange['awardingstarttime']),'end'=>date('Y-m-d H:i',$exchange['awardingendtime'])), true)}
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 兑奖方式</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="tickettype1" class="radio-inline"><input type="radio" name="tickettype" value="1" id="tickettype1" {if $exchange['tickettype'] == 1}checked="true"{/if} onclick="$('#address').show();$('#awardingpas').hide();$('#beihuo').hide();$('#beihuo_tips').hide();"/> 后台兑奖</label>&nbsp;&nbsp;&nbsp;
					<label for="tickettype2" class="radio-inline"><input type="radio" name="tickettype" value="2" id="tickettype2" {if $exchange['tickettype'] == 2}checked="true"{/if} onclick="$('#address').show();$('#awardingpas').hide();$('#beihuo').show();{if $exchange['beihuo']==1}$('#beihuo_tips').show();{/if}"/> 店员兑奖</label>{if $stonefish_branch}&nbsp;&nbsp;&nbsp;
					<label for="tickettype3" class="radio-inline"><input type="radio" name="tickettype" value="3" id="tickettype3" {if $exchange['tickettype'] == 3}checked="true"{/if} onclick="$('#address').hide();$('#awardingpas').hide();$('#beihuo').show();{if $exchange['beihuo']==1}$('#beihuo_tips').show();{/if}"/> 商家网点兑奖</label>{/if}&nbsp;&nbsp;&nbsp;
					<label for="tickettype4" class="radio-inline"><input type="radio" name="tickettype" value="4" id="tickettype4" {if $exchange['tickettype'] == 4}checked="true"{/if} onclick="$('#address').show();$('#awardingpas').show();$('#beihuo').hide();$('#beihuo_tips').hide();"/> 密码兑奖</label>
				</div>				
            </div>
        </div>
		<div class="form-group" id="beihuo"{if $exchange['tickettype'] == 1 || $exchange['tickettype'] == 4} style="display:none"{/if}>
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">备货选项</label>
			<div class="col-sm-9 col-xs-12">
				<div class="input-group">
					<label for="beihuo0" class="radio-inline"><input type="radio" name="beihuo" value="0" id="beihuo0" {if $exchange['beihuo'] == 0}checked="true"{/if} onclick="$('#beihuo_tips').hide();"/> 关闭备货</label>&nbsp;&nbsp;&nbsp;
					<label for="beihuo1" class="radio-inline"><input type="radio" name="beihuo" value="1" id="beihuo1" {if $exchange['beihuo'] == 1}checked="true"{/if} onclick="$('#beihuo_tips').show();"/> 开启备货</label>
				</div>
				<span class="help-block">开启备货，粉丝中奖后可选择兑奖地点，后台查看数据备货 <span style="color:red">注：兑奖开始时间前才启作用</span></span>
			</div>
		</div>
		<div class="form-group" id="beihuo_tips"{if $exchange['beihuo']==0} style="display:none"{/if}>
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">备货按钮</label>
			<div class="col-sm-9 col-xs-12">
				<div class="input-group">
					<span class="input-group-addon">备货自定义提示词</span>
					<input type="text" name="beihuo_tips" class="form-control" value="{$exchange['beihuo_tips']}" />
					<span class="input-group-addon">不超过20个汉字</span>
				</div>
			</div>
		</div>
		<div class="form-group" id="awardingpas"{if $exchange['tickettype'] < 4} style="display:none"{/if}>
			<label class="col-xs-12 col-sm-3 col-md-2 control-label">兑奖密码</label>
			<div class="col-sm-9 col-xs-12">
				<div class="input-group">
					<span class="input-group-addon">兑奖人密码</span>
					<input type="text" name="awardingpas" class="form-control" value="{$exchange['awardingpas']}" />
					<span class="input-group-addon">6-10位数字字母</span>
				</div>
			</div>
		</div>
		<div id="address">
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 兑奖地点</label>
            <div class="col-sm-9 col-xs-6">
				<input type="text" name="awardingaddress" class="form-control" value="{$exchange['awardingaddress']}" />			
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 兑奖联系电话</label>
            <div class="col-sm-9 col-xs-6">
				<input type="text" name="awardingtel" class="form-control" value="{$exchange['awardingtel']}" />				
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 兑奖导航</label>
            <div class="col-sm-9 col-xs-6">
				{php echo tpl_form_field_coordinate('baidumap', array('lng'=>$exchange['baidumaplng'],'lat'=>$exchange['baidumaplat']))}
            </div>
        </div>
		</div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 兑奖类型</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="awardingtype1" class="radio-inline"><input type="radio" name="awardingtype" value="1" id="awardingtype1" {if $exchange['awardingtype'] == 1}checked="true"{/if}/> 单独兑奖(每个奖品可单独兑奖)</label>&nbsp;&nbsp;&nbsp;
					<label for="awardingtype2" class="radio-inline"><input type="radio" name="awardingtype" value="2" id="awardingtype2" {if $exchange['awardingtype'] == 2}checked="true"{/if}/> 统一兑奖(所有奖品统一兑奖)</label>
				</div>				
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 库存类型</label>
            <div class="col-sm-9 col-xs-6">
               	<div class="input-group">
					<label for="inventory1" class="radio-inline"><input type="radio" name="inventory" value="1" id="inventory1" {if $exchange['inventory'] == 1}checked="true"{/if}/> 抽中立即减少库存</label>&nbsp;&nbsp;&nbsp;
					<label for="inventory2" class="radio-inline"><input type="radio" name="inventory" value="2" id="inventory2" {if $exchange['inventory'] == 2}checked="true"{/if}/> 兑奖后才减少库存</label>
				</div>
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 兑奖输入项提示词</label>
            <div class="col-sm-9 col-xs-6">
				<input type="text" class="form-control" name="awarding_tips" value="{$exchange['awarding_tips']}" />
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 兑奖输入参数项</label>
            <div class="col-sm-9 col-xs-12">
				<div style="border:1px #eee dashed; padding:10px;background:#F5F5F5;">					
               	    <label for="isrealname" class="checkbox-inline"><input id="isrealname" type="checkbox" name="isrealname" value="1" {if $exchange['isrealname'] == 1}checked="checked"{/if}> 姓名</label>
				    <label for="ismobile" class="checkbox-inline"><input id="ismobile" type="checkbox" name="ismobile" value="1" {if $exchange['ismobile'] == 1}checked="checked"{/if}> 手机</label>
				    <label for="isqq" class="checkbox-inline"><input id="isqq" type="checkbox" name="isqq" value="1" {if $exchange['isqq'] == 1}checked="checked"{/if}> QQ号</label>
				    <label for="isemail" class="checkbox-inline"><input id="isemail" type="checkbox" name="isemail" value="1" {if $exchange['isemail'] == 1}checked="checked"{/if}> 邮箱</label>
				    <label for="isaddress" class="checkbox-inline"><input id="isaddress" type="checkbox" name="isaddress" value="1" {if $exchange['isaddress'] == 1}checked="checked"{/if}> 地址</label>
					<label for="isgender" class="checkbox-inline"><input id="isgender" type="checkbox" name="isgender" value="1" {if $exchange['isgender'] == 1}checked="checked"{/if}> 性别</label>
					<label for="istelephone" class="checkbox-inline"><input id="istelephone" type="checkbox" name="istelephone" value="1" {if $exchange['istelephone'] == 1}checked="checked"{/if}> 固话</label>
					<label for="isidcard" class="checkbox-inline"><input id="isidcard" type="checkbox" name="isidcard" value="1" {if $exchange['isidcard'] == 1}checked="checked"{/if}> 证件</label>
					<label for="iscompany" class="checkbox-inline"><input id="iscompany" type="checkbox" name="iscompany" value="1" {if $exchange['iscompany'] == 1}checked="checked"{/if}> 公司</label>
					<label for="isoccupation" class="checkbox-inline"><input id="isoccupation" type="checkbox" name="isoccupation" value="1" {if $exchange['isoccupation'] == 1}checked="checked"{/if}> 职业</label>
					<label for="isposition" class="checkbox-inline"><input id="isposition" type="checkbox" name="isposition" value="1" {if $exchange['isposition'] == 1}checked="checked"{/if}> 职位</label>
					</div>
					<div class="help-block">必需选择一个参数兑奖 活动开启后最好不要修改 请谨慎选择 重命显示请修改下面的参数</div>
            </div>
        </div>
		<div class="form-group">
 			<label class="col-xs-12 col-sm-3 col-md-2 control-label">兑奖输入参数重命名</label>
            <div class="col-sm-9 col-xs-6">
				<input type="text" class="form-control" name="isfansname" value="{$exchange['isfansname']}" />
				<div class="help-block">与上面的参数一一对应，请直接修改不要改变','这个字符</div>
            </div>
        </div>
		<div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"> 兑奖输入参数同步</label>
            <div class="col-sm-9 col-xs-12">
				<label for="isfans_0" class="radio-inline"><input id="isfans_0" type="radio" name="isfans" value="0" {if $exchange['isfans'] == 0}checked="checked"{/if}> 参数项只保留本模块下</label>
				<label for="isfans_1" class="radio-inline"><input id="isfans_1" type="radio" name="isfans" value="1"  {if $exchange['isfans'] == 1}checked="checked"{/if}> 参数项同步更新至官方会员信息表中</label>
            </div>
        </div>
    </div>
</div>

<div class="panel panel-default" id="nav_rh">
    <div class="panel-heading">
        {if $ids_num>1}多子公众号分享设置{else}分享设置{/if}
    </div>
    <div class="panel-body table-responsive">
		{if $ids_num>1}
		<!-- Nav tabs -->
        <ul class="nav nav-tabs" role="tablist">
            {loop $ids $idsname}
			<li role="presentation"{if $idsname==$one} class="active"{/if}>
                <a href="#acid{$idsname}" role="tab" data-toggle="tab">{$acid_arr[$idsname]['name']}</a>
            </li>
			{/loop}
        </ul>
		<!-- Tab panes -->
		{/if}
        <div class="tab-content">
			{loop $share $shares}
			<input type="hidden" name="acid_{$shares['acid']}" value="{$shares['id']}"/>
            <div role="tabpanel" class="tab-pane{if $shares['acid']==$one} active{/if}" id="acid{$shares['acid']}">
		    <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 参与活动关注引导页</label>
                <div class="col-sm-9 col-xs-12">
               	    <input type="text" id="share_url_{$shares['acid']}" class="form-control" name="share_url_{$shares['acid']}" value="{$shares['share_url']}">
                    <div class="help-block">关注引导页的链接! 推荐用微信平台的素材库，转成短地址。<a target="_blank" href="http://www.dwz.cn/">短网址转换</a> 不填写自动生成关注引导页</div>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">助力关注引导页</label>
                <div class="col-sm-9 col-xs-12">
               	    <input type="text" id="help_url_{$shares['acid']}" class="form-control" name="help_url_{$shares['acid']}" value="{$shares['help_url']}">
                    <div class="help-block">关注引导页的链接! 推荐用微信平台的素材库，转成短地址。<a target="_blank" href="http://www.dwz.cn/">短网址转换</a> 不填写自动生成关注引导页</div>
                </div>
            </div>		    
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">参与规则</label>
                <div class="col-sm-9 col-xs-12">
     	            <textarea style="height:200px;" id="share_txt_{$shares['acid']}" name="share_txt_{$shares['acid']}" class="form-control richtext_{$shares['acid']}" cols="60">{$shares['share_txt']}</textarea>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享权限</label>
                <div class="col-sm-9 col-xs-12">
                   <div class="input-group">
					   <label for="share_open_close0_{$shares['acid']}" class="radio-inline"><input type="radio" name="share_open_close_{$shares['acid']}" value="0" id="share_open_close0_{$shares['acid']}" {if $shares['share_open_close'] == 0}checked="true"{/if} onclick="$('#share_open_close_{$shares['acid']}').hide();"/> 关闭分享</label>&nbsp;&nbsp;&nbsp;
					   <label for="share_open_close1_{$shares['acid']}" class="radio-inline"><input type="radio" name="share_open_close_{$shares['acid']}" value="1" id="share_open_close1_{$shares['acid']}" {if $shares['share_open_close'] == 1}checked="true"{/if} onclick="$('#share_open_close_{$shares['acid']}').show();"/> 开启分享</label>
				    </div>
                </div>
            </div>
			<div id="share_open_close_{$shares['acid']}"{if $shares['share_open_close'] == 0} style="display: none;"{/if}>
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 分享标题</label>
                <div class="col-sm-9 col-xs-12">
               	    <input type="text" id="share_title_{$shares['acid']}" class="form-control" name="share_title_{$shares['acid']}" value="{$shares['share_title']}">
                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style='color:red'>*</span> 分享描述</label>
                <div class="col-sm-9 col-xs-12">
     	            <textarea style="height:60px;" id="share_desc_{$shares['acid']}" name="share_desc_{$shares['acid']}" class="form-control" cols="60">{$shares['share_desc']}</textarea>
				    <span class="help-block">分享标题以及分享描述可用变量<br/><span style='color:red'>#参与人数# </span>所有参与活动的总数 + 虚拟人数<br/><span style='color:red'>#粉丝昵称# </span>粉丝昵称<br/><span style='color:red'>#真实姓名# </span>粉丝真实姓名<br/><span style='color:red'>#奖品名称# </span>分享人所中的最大奖品名称，没有中奖则不显示</span>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">助力亲友团按钮</label>
                <div class="col-sm-9 col-xs-12">
               	    {php echo tpl_form_field_image('share_firend_'.$shares['acid'],$shares['share_firend']);}
					<div class="help-block">输入文字则显示文字按钮 图片大小建议250 * 35</div>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享朋友或朋友圈图</label>
                <div class="col-sm-9 col-xs-12">
               	    {php echo tpl_form_field_image('share_img_'.$shares['acid'],$shares['share_img']);}
					<div class="help-block">留空则显示活动图片 图片大小建议150 * 150</div>
                </div>
            </div>
		    <div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享弹出提示图</label>
                <div class="col-sm-9 col-xs-12">
                   	{php echo tpl_form_field_image('share_pic_'.$shares['acid'],$shares['share_pic']);}
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享成功提示语</label>
                <div class="col-sm-9 col-xs-6">
					<input type="text" class="form-control" name="share_confirm_{$shares['acid']}" value="{$shares['share_confirm']}" />
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享成功后跳转</label>
                <div class="col-sm-9 col-xs-12">
				    {php echo tpl_form_field_link('share_confirmurl_'.$shares['acid'],$shares['share_confirmurl']);}
				    <div class="help-block">请选择跳转活动页,<span style='color:red'>活动首页</span>跳转重新开始活动页， <span style='color:red'>我的奖品</span>跳转至奖品页， <span style='color:red'>选择链接</span>跳转到其他活动</div>
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享失败提示语</label>
                <div class="col-sm-9 col-xs-6">
					<input type="text" class="form-control" name="share_fail_{$shares['acid']}" value="{$shares['share_fail']}" />		    
                </div>
            </div>
			<div class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-2 control-label">分享中途取消提示语</label>
                <div class="col-sm-9 col-xs-6">
					<input type="text" class="form-control" name="share_cancel_{$shares['acid']}" value="{$shares['share_cancel']}" />		    
                </div>
            </div>
			</div>
			</div>
			{/loop}
		</div>
	</div>	
</div>
<div id="nav_r1"></div>
<script type="text/javascript">
<!--
	function validateReplyForm(formobj, jq, underscore, util, $scope, $http) {
		if (!formobj['title'].value) {
			util.message('请输入活动标题');
			return false;
		}
		if (!formobj['description'].value) {
			util.message('请输入活动说明');
			return false;
		}
		if (!formobj['end_title'].value) {
			util.message('请输入活动结束标题');
			return false;
		}
		if (!formobj['end_description'].value) {
			util.message('请输入活动结束说明');
			return false;
		}
	}
	
	require(['jquery', 'util'], function($, u){
		$(function(){
			u.editor($('.richtextinfo')[0]);
			{if $stonefish_branch}u.editor($('.richtext2')[0]);{/if}
			{loop $ids $idsname}
			u.editor($('.richtext_{$idsname}')[0]);
			{/loop}
		});
    });
	var k=1;
	$('#btn_add_award').bind('click', function(){
		k = k + 1;
		var content = '<div>';
		content += $("#jiangpin").html();		
		content += '<div class="form-group">';
		content += '<label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>';
		content += '<div class="col-sm-9">';
		content += '<button type="button" class="btn btn-danger btn_del_award">删除</button>';
		content += '</div>';
		content += '</div>';
		content += '<hr/>';
		content += '</div>';
		var reg=new RegExp('变化的ID','g'); //创建正则RegExp对象
		contents = content.replace(reg,k);
		$('#award_insert_flag').before(contents);
		$('.btn_del_award').bind('click', function(){
			var obj = $(this).parent().parent().parent();
			obj.slideUp(300, function() {
				obj.remove();
			});
		});
	});
	var j=1;
	$('#btn_add_banner').bind('click', function(){
		j = j + 1;
		var content = '<div>';
		content += $("#banner").html();		
		content += '<div class="form-group">';
		content += '<label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>';
		content += '<div class="col-sm-9">';
		content += '<button type="button" class="btn btn-danger btn_del_banner">删除</button>';
		content += '</div>';
		content += '</div>';
		content += '<hr/>';
		content += '</div>';
		var reg=new RegExp('变化的ID','g'); //创建正则RegExp对象
		contents = content.replace(reg,j);
		$('#banner_insert_flag').before(contents);
		$('.btn_del_banner').bind('click', function(){
			var obj = $(this).parent().parent().parent();
			obj.slideUp(300, function() {
				obj.remove();
			});
		});
	});
//-->
</script>